<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<html>
<head>
	<META http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Event view</title>
	<link rel="stylesheet" href="<c:url value="/resources/blueprint/screen.css" />" type="text/css" media="screen, projection">
	<link rel="stylesheet" href="<c:url value="/resources/blueprint/print.css" />" type="text/css" media="print">
	<!--[if lt IE 8]>
		<link rel="stylesheet" href="<c:url value="/resources/blueprint/ie.css" />" type="text/css" media="screen, projection">
	<![endif]-->
</head>	
<body>

<br/>
<br/>
<br/>
<div class="container">
	<div id="tablePadding">
	<table id="table-css">
	<caption>User Standings in Pool</caption>
	<tr>
	<td> Event Name
	</td>
	<td> Pool Name
	</td>	
	<td>User Email
	</td>
	 <td>Correct Predictions Count
	</td>
	<td> Total Points Scored
	</td>
	</tr>
	<c:forEach var="userPool" items="${usersInPool}"  varStatus="userIndex">
	<tr <c:if test="${(userIndex.index%2)==0}">class='alt'</c:if>>
	<td>${userPool.eventName}
	</td>
	<td>${userPool.poolName}
	</td>	
	<td>${userPool.userEmail}
	</td>
	<td>${userPool.correctPredictions}
	</td>
	<td>${userPool.pointsScored}
	</td>					
	</tr>
	</c:forEach>

	</table>
	</div>
<br/>
<br/>
<div align="center"><a href="<c:url value='/users/predictions/${userPoolId}'/>"><img src="/static/images/ChangePredictions.gif"/></a></div>
<br/>
<br/>	
</div>
</body>
</html>